Resolve the Ninja C++ extensions required error by installing the ninja build system to enable DeepSpeed custom CUDA kernel compilation.